/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-09-15
 * Time: 16:01
 */
public class test5 {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "a" + "bc";
        String s3 = new String("abc");
        String s4 = new String("a"+"bc");
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));
        System.out.println("======");


        System.out.println(s1==s3);

        System.out.println("========");
        System.out.println(s3==s4);
        System.out.println(s3.equals(s4));
    }
}
